package cn.imnaer.service.rest.sharephoto;


import javax.ws.rs.*;
import javax.ws.rs.core.MediaType;

@Path(value = "/travelnote")
public interface TravelNoteComponentRestApi {
    @POST
    @Path("/create")
    @Consumes(MediaType.MULTIPART_FORM_DATA)
    public String create(String jsonData);

    @POST
    @Path("/city/hot/list/{pageIndex}")
    @Consumes(MediaType.MULTIPART_FORM_DATA)
    public String city(@PathParam("pageIndex") Integer pageIndex, String jsonData);

    @POST
    @Path("/update")
    @Consumes(MediaType.MULTIPART_FORM_DATA)
    public String updateTravelNote(String jsonData);

    @GET
    @Path("/list/{id}/{pageIndex}")
    public String getTravelNoteListByUserId(@PathParam("id") String userId, @PathParam("pageIndex") Integer pageIndex);

    @POST
    @Path("/detail")
    @Consumes(MediaType.MULTIPART_FORM_DATA)
    public String getTravelNoteDetail(String jsonData);

    @GET
    @Path("/delete/{noteId}")
    public String deleteTravelNote(@PathParam("noteId") String noteId);
}
